#CONTROL(BrowseBox,'File-Browsing List Box'),PRIMARY('File-Browsing List Box',OPTKEY),DESCRIPTION('Browse on ' & %Primary),MULTI,WINDOW,HLP('~TPLControlBrowseBox')
#EMBED(%StartInitializeBrowseRoutine,'Start of Initialize Browse ROUTINE'),HIDE
#SUSPEND
#?SETCURSOR(Cursor:Wait)
#?DO %InstancePrefix:Reset
#FOR(%BrowseTotals)
#CASE(%BrowseTotalType)
#OF('Count')
%InstancePrefix:%BrowseTotalTarget:Cnt:Value = 0
#OF('Sum')
%InstancePrefix:%BrowseTotalTarget:Sum:Value = 0
#OF('Average')
%InstancePrefix:%BrowseTotalTarget:Cnt:Value = 0
%InstancePrefix:%BrowseTotalTarget:Sum:Value = 0
#ENDCASE
#ENDFOR
#EMBED(%BeforeTotalLoop,'Before Browse Total Loop'),WHERE(ITEMS(%BrowseTotals)),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)
#EMBED(%TotalLoop,'Browse Total Loop'),WHERE(ITEMS(%BrowseTotals)),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)
#?END
#EMBED(%AfterTotalLoop,'After Browse Total Loop'),WHERE(ITEMS(%BrowseTotals)),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)
#EMBED(%CodeTypeElse,'BrowseReset ROUTINE, before setting range limit values'),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)
#EMBED(%EndOfFormatBrowse,'End of Format an element of the browse queue'),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)
#EMBED(%StartAlertKey,'INTERNAL: Start of Alert Key ROUTINE'),HIDE
#FIX(%Control,%ListControl)
#SUSPEND
#?IF %InstancePrefix:RecordCount
#?CASE KEYCODE() #<! What keycode was hit
#EMBED(%AlertKeyCaseKEYCODE,'AlertKey routine, inside CASE KEYCODE'),%ActiveTemplateInstance,MAP(%ActiveTemplateInstance,%ActiveTemplateinstanceDescription)